home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / IntlLongDistPhoneNumber.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  44 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3.  
  4. /**
  5.  *
  6.  * Creates a formatted text field for an international phone number.
  7.  * IntlLongDistPhoneNumber limits the type of text that can be entered in the text
  8.  * box to an international long distance phone number (thirteen-digit number).
  9.  * Text formatting logic is applied to the user input.
  10.  * If the text field already contains text, the user can select the default text
  11.  * and delete or edit it.
  12.  *
  13.  *
  14.  * @see symantec.itools.awt.FormattedTextField
  15.  *
  16.  * @author    Symantec
  17.  *
  18.  */
  19.  
  20.  
  21. public class IntlLongDistPhoneNumber
  22.     extends LongDistPhoneNumber
  23. {
  24.     /**
  25.      * Create international long distance phone number text field.
  26.      * This is a formatted text field
  27.      * with the following format: /0/1/1/ 99/ 999/ 999/-9999
  28.      */
  29.     public IntlLongDistPhoneNumber()
  30.     {
  31.         super(14);
  32.  
  33.         super.setMask("/0/1/1/ 99/ 999/ 999/-9999");
  34.     }
  35.  
  36.     /**
  37.      * Takes no action.  Overrides setMask in FormattedTextField to prevent
  38.      * alteration of the phone number mask.
  39.      */
  40.     public void setMask(String s)
  41.     {
  42.     }
  43. }
  44.